package com.wym.lottery.util;

//赔率
public class CheckPayMoney {

	// 四现
	private final static int multi_1 = 250;
	// 三现
	private final static int multi_2 = 43;
	// 二现
	private final static int multi_3 = 9;
	// 四定
	private final static int multi_4 = 8000;
	// 三定
	private final static int multi_5_8 = 850;
	// 二定
	private final static int multi_9_14 = 90;

	//应付的金额，暂时没有用到
	private static String countPayMoney(String type, String money) {
		int m_type = Integer.parseInt(type);
		int m_money = Integer.parseInt(money);
		int sum = 0;
		if (m_type == 1)
			sum = m_money * multi_1;
		else if (m_type == 2)
			sum = m_money * multi_2;
		else if (m_type == 3)
			sum = m_money * multi_3;
		else if (m_type == 4)
			sum = m_money * multi_4;
		else if (5 <= m_type && m_type <= 8)
			sum = m_money * multi_5_8;
		else if (9 <= m_type && m_type <= 14)
			sum = m_money * multi_9_14;
		return sum + "";
	}

	//根据彩票的类型算出赔率
	public static String getMultiple(int m_type) {
		int sum = 0;
		if (m_type == 1)
			sum = multi_1;
		else if (m_type == 2)
			sum = multi_2;
		else if (m_type == 3)
			sum = multi_3;
		else if (m_type == 4)
			sum = multi_4;
		else if (5 <= m_type && m_type <= 8)
			sum = multi_5_8;
		else if (9 <= m_type && m_type <= 14)
			sum = multi_9_14;
		return sum + "";
	}
}
